<template>
  <div id="app">
    <button @click='getData'> 获取售卖数据</button>
    Hello

    <my-hello title= "aaa"> </my-hello>
  </div>
</template>

<script>
import Hello from './components/Hello';

export default {
  name: 'App',
  aaa: 'bbb',
  
  //  data () {
  //     return {
  //       // seller: null // 有问题
  //       aaa : 'bb',
  //     }
  //   },
  components: {
    'my-hello':Hello
  },
  methods :{
    getData() {
      this.$http.get('/api2/seller').then((response) => {
        console.log(response.body)
      });

    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
